<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
    <script th:src="@{/assets/plugins/jquery/jquery-3.1.0.min.js}"></script>
    <script th:src="@{/layui/layui.js}"></script>
</head>
<style>
    ::-webkit-scrollbar {display:none}
</style>
<body>
<form class="layui-form" th:action="@{/workdiary/editwork}">
<div th:each="work:${list}">
    <input type="hidden" name="worklogid" th:value="${work.worklogid}">

    <li>
        <label class="layui-form-label" style="width: 200px; text-align: left">本周情况描述：</label>
        <textarea class="layui-textarea" name="weekcur" th:text="${work.weekcur}"></textarea>
    </li>


    <li>
        <label class="layui-form-label" style="width: 200px; text-align: left">问题学生情况反馈：</label>
        <textarea class="layui-textarea" name="studentquestion" th:text="${work.studentquestion}"></textarea>
    </li>

    <li>
        <label class="layui-form-label" style="width: 200px; text-align: left">意见建议：</label>
        <textarea class="layui-textarea" name="idea" th:text="${work.idea}"></textarea>
    </li>

    <li>
        <label class="layui-form-label" style="width: 200px; text-align: left">下周工作计划：</label>
        <textarea class="layui-textarea" name="weeknext" th:text="${work.weeknext}"></textarea>
    </li>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <center>
                <button class="layui-btn" onclick="ok()" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重新填写</button>
            </center>
        </div>
    </div>
</div>
</form>
</body>
<script type="text/javascript">

    function ok() {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
        window.parent.location.reload();
    }

</script>
</html>